package me.project.android_common.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("mk_datapoint")
public class DataPoint extends Model<DataPoint> {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    @TableField("dataTypeId")
    private Long dataTypeId;
    @TableField("dataPointId")
    private String dataPointId;
    @TableField("androidId")
    private Long androidId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
